package jschool.ui.Colegio;

import java.awt.Frame;

import javax.swing.JDialog;

public class DialogoColegio extends JDialog {

	private static final long serialVersionUID = 1L;
	private PanelColegio panelColegio = null;
	private static DialogoColegio instancia = null;

	/**
	 * @param owner
	 */
	public DialogoColegio(Frame owner, String titulo) {
		super(owner, titulo);
		initialize();
	}

	public static DialogoColegio getInstancia() {
		if (instancia == null) {
			instancia = new DialogoColegio(null, "Modificar Colegio");
		}
		return instancia;
	}

	/**
	 * This method initializes this
	 * 
	 * @return void
	 */
	private void initialize() {
		this.setSize(444, 317);
		this.setContentPane(getJContentPane());
	}

	/**
	 * This method initializes jContentPane
	 * 
	 * @return javax.swing.JPanel
	 */
	private PanelColegio getJContentPane() {
		if (panelColegio == null) {
			panelColegio = new PanelColegio();
		}
		return panelColegio;
	}

}
